package com.jiejie.university.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class Student {
    private Integer id;
    private String sname;
    private String sex;
    private Integer Cid;
    private Integer Mid;
    private Integer Did;
    private String nation;
    private Integer age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    //@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date birthday;
    private String location;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    //@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date enroll;

}
